<template>
    <el-popconfirm title="确认删除吗？" @confirm="handleDelete(props.row)" confirm-button-text="确认" cancel-button-text="取消">
        <template #reference>
            <el-button size="small" type="danger">
                删除
            </el-button>
        </template>
    </el-popconfirm>
</template>

<script setup>
import { defineProps,defineEmits } from 'vue';

const props = defineProps({
    row:Object
})

const emit = defineEmits(['handleDelete'])

const handleDelete = (row)=>{
    emit("handleDelete",row)
}

</script>